package com.chang.bootplus.service;

import com.chang.bootplus.base.utils.ApiResponse;
import com.chang.bootplus.entity.News;
import com.baomidou.mybatisplus.extension.service.IService;
import com.chang.bootplus.po.*;
import com.chang.bootplus.vo.NewsVO;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chang
 * @since 2022-01-23
 */
public interface NewsService extends IService<News> {

    ApiResponse<NewsVO> listNews(NewsSelPO po);

    ApiResponse<Void> addNews(NewsPO po);

    ApiResponse<Void> deleteNews(NewsIdPO po);

    ApiResponse<Void> updateNews(NewsUpdatePO po);

    ApiResponse<NewsVO> listBackNews(NewsSelBackPO po);
}
